#-------------------------------------------------
#
# Project created by QtCreator 2014-05-28T11:50:00
#
#-------------------------------------------------
cache()

QT       += core gui network xml serialport quickwidgets
QT       += network charts
QT       += datavisualization
QT       += concurrent
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
CONFIG += link_pkgconfig


TARGET = leili
TEMPLATE = app
QMAKE_INFO_PLIST = Info.plist

INCLUDEPATH += models network views util tools

QMAKE_LFLAGS += -Wl,-rpath=./lib
QMAKE_LFLAGS += -Wall -Wextra -Werror

unix{
    #linux you must install this first
    #system(sudo apt-get install build-essential freeglut3-dev libglew-dev libglfw3-dev mesa-utils )
    #system(sudo apt-get install libgsl-dev)
}


msvc:QMAKE_CXXFLAGS += -execution-charset:utf-8
msvc:QMAKE_CXXFLAGS += -source-charset:utf-8

unix {
INCLUDEPATH += $$PWD/armadillo-3.930.0/include
#INCLUDEPATH += /usr/include
INCLUDEPATH += /opt/ros/melodic/include
INCLUDEPATH += /usr/include/OGRE
INCLUDEPATH += /usr/include/eigen3
INCLUDEPATH += /usr/include/pcl-1.14
INCLUDEPATH += /usr/local/include/vtk-9.5

#INCLUDEPATH += /usr/local/include/yaml-cpp #需要安装开源项目，以解析yaml文件 https://github.com/jbeder/yaml-cpp.git
INCLUDEPATH += $$PWD/pathplanmodule/include



LIBS += -L/usr/lib/x86_64-linux-gnu/lapack/  -llapack -lblas -lOgreMain
LIBS += /opt/ros/melodic/lib/*.so -lconsole_bridge
LIBS += /usr/lib/x86_64-linux-gnu/libboost_filesystem.so
LIBS += /usr/lib/x86_64-linux-gnu/libboost_system.so
LIBS += /usr/lib/x86_64-linux-gnu/libboost_thread.so

LIBS += -L/usr/local/lib  -lyaml-cpp
#LIBS += -L/usr/lib/x86_64-linux-gnu  -lyaml-cpp

LIBS += -L$$OUT_PWD/lib  -ldivision -laco -ldinic  -lmtsp  -lheuristicpartition
LIBS += /usr/local/lib/*.so

LIBS += /usr/lib/*.so

#pkg-config --libs jsoncpp
#PKGCONFIG += yaml-cpp
PKGCONFIG += jsoncpp
#LIBS += -L/usr/lib/x86_64-linux-gnu/ -lconsole_bridge
}

message($$OUT_PWD -----------------)
message($$PWD/third_party/vtk9.5/lib/)
#线性代数库Armadillo
win32 {
INCLUDEPATH += $$PWD/armadillo-3.930.0/include
LIBS += -L$$PWD/armadillo-3.930.0/lib/ -lblas_win32_MT
LIBS += -L$$PWD/armadillo-3.930.0/lib/ -llapack_win32_MT
}

SOURCES += main.cpp\
    RTLSDisplayApplication.cpp \
    machinemgr.cpp \
    node/rosnode.cpp \
    node/rosthread.cpp \
    node/maptransformer.cpp \
    qrviz.cpp \
    network/machineparam.cpp \
    network/moveaction.cpp \
    network/tcpclient.cpp \
    tools/cmdprocess.cpp \
    tools/leiliconfig.cpp \
    tools/map_file_manager.cpp \
    tools/tool_manager.cpp \
    tools/virtual_wall_tool.cpp \
    util/rosbag.cpp \
    util/util.cpp \
    views/custommessagebox.cpp \
    views/gridmap.cpp \
    views/ladarwidget.cpp \
    views/mainwindow.cpp \
    util/QPropertyModel.cpp \
    views/movecontrolwidget.cpp \
    views/mypushbutton.cpp \
    views/pathfollowwidget.cpp \
    views/pathplanwidget.cpp \
    views/pointcloudwidget.cpp \
    views/joystickwidget.cpp \
    views/settingwidget.cpp \
    views/slamwidget.cpp \
    views/speedmonitorWidget.cpp \
    views/titlebar.cpp \
    views/toast.cpp \
    views/uwbwidget.cpp




HEADERS  += \
    RTLSDisplayApplication.h \
    base.h \
    machinemgr.h \
    node/rosnode.h \
    node/rosthread.h \
    node/maptransformer.h \
    qrviz.hpp \
    network/machineparam.h \
    network/moveaction.h \
    network/tcpclient.h \
    tools/Singleton.h \
    tools/cmdprocess.h \
    tools/leiliconfig.h \
    tools/map_file_manager.h \
    tools/tool_manager.h \
    tools/virtual_wall_tool.h \
    util/rosbag.h \
    util/topicfiled.h \
    util/util.h \
    views/custommessagebox.h \
    views/gridmap.h \
    views/ladarwidget.h \
        views/mainwindow.h \
    views/joystickwidget.h \
    util/QPropertyModel.h \
    views/movecontrolwidget.h \
    views/mypushbutton.h \
    views/pathfollowwidget.h \
    views/pathplanwidget.h \
    views/pointcloudwidget.h \
    views/settingwidget.h \
    views/slamwidget.h \
    views/speedmonitorWidget.h \
    views/titlebar.h \
    views/toast.h \
    views/uwbwidget.h


FORMS    +=


RESOURCES += \
    res/lanague.qrc \
    res/resources.qrc

TRANSLATIONS = lanague_cn.ts\
               lanague_en.ts

RC_FILE =logo.rc

#include ($$PWD/gsl/gsl.pri)
